package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.project.Variable;

public interface IVariableDao {
	
	public Variable queryById(long id);

	public List<Variable> queryByList();
	
	public void save(Variable variable);

	public Variable update(Variable variable);

	public void delete(Variable variable);
	
	public List<Variable> queryByProject(long projectId);
	//查询项目的变量和系统的变量
	public List<Variable> queryValidByProject(long projectId);

	public Variable queryByProjectAndName(long projectId, String name);

}
